/*
* $Id: QBeeView.h 122 2010-07-22 17:05:50Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _QBEE_VIEW_H_
#define _QBEE_VIEW_H_

#include "../ViewJournal.h"
#include "Visual/Drawers/InfoDrawer/InfoDrawer.h"

class CQBeeView : public CEmptyViewJournal
{
protected:
	CInfoDrawer m_infoDrawer;
protected:
	CScrollBar m_VScroll;
	CScrollBar m_HScroll;
	bool m_bVScroll;
	bool m_bHScroll;
protected:
	void UpgradeScroll(int cx, int cy);
	void MoveScroll(int sizeCx, int sizeCy);
	void Scroll(UINT nSBCode, CScrollBar* pScrollBar);
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg LRESULT OnButtonClick(WPARAM wParam, LPARAM lParam);
public:
	CQBeeView(CState* pState);
	virtual ~CQBeeView();
};

#endif/*_QBEE_VIEW_H_*/
